﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>个人中心</title>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="Bookmark" href="/favicon.ico" >
	<link rel="Shortcut Icon" href="/favicon.ico" />
	
	<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
	<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
	<script type="text/javascript">
	  function aaa()
	  {
	     parent.rightFrame.location="emp/change-password.jsp";
	  }
	  
	  
	  function bbb(){
	      var aa=$("#phone").html();
	      alert(aa);
	      $("#phone").html("");
	    
	      $("#phone").append("<input type='text' name='ph' id='pho' value='"+aa+"'>");
	        alert("sss");
	  }
	  $(function(){
	     $("body").on("change","#phone input",function(){
	         var id=$("#uid").html();
	         var pp=$(this).val();
	         location="emp/mod4.action?id="+id+"&ph="+pp;
	     }); 
	  });
	  
	 
	 
	</script>
</head>
<body>
  <div class="mt-20">
	<table class="table table-border table-bordered table-hover table-bg">
		<thead> 
			<tr class="text-c">
				<th width="80">ID</th>
				<th width="100">用户名</th>
				<th width="40">性别</th>
				<th width="90">手机</th>
				<th width="150">邮箱</th>
				<th width="">地址</th>
				<th width="">详细地址</th>
				<th width="130">加入时间</th>
				<th width="70">状态</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody id="empbody">
		     <tr class="text-c">
				<td width="80" id="uid">${loger.us_id}</td>
				<td width="100">${loger.us_name}</td>
				<td width="40">${loger.a_id.ar_sex}</td> 
				<td width="90" id="phone">${loger.us_phone}</td>
				<td width="150">${loger.a_id.ar_email}</td>
				<td width="">${loger.a_id.ar_country}---${loger.a_id.ar_province}---${loger.a_id.ar_city}</td>
				<td width="">${loger.a_id.ar_district}---${loger.a_id.ar_address}</td>
				<td width="130"><fmt:formatDate value="${loger.a_id.intime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td width="70">${loger.a_id.ar_status}</td>
				<td width="100">
				   <a href="javascript:aaa()">修改密码</a>
				   |
				   <a href="javascript:bbb()">修改电话</a>
				</td>
			</tr>  
		</tbody>
	</table>
	</div>
  
</body>
</html>